(function($){
	var privateFun = function(){
		//
	}
	var pageSwitch = (function(){
		function pageSwitch(element, options){
			this.settins = $.extend(true, $.fn.pageSwitch.default, options||{});
			this.element = element;
			this.init();
		}
		pageSwitch.prototype ={
			init : function(){

			}
		}
		return pageSwitch;

	})();
	$.fn.pageSwitch = function(options){
		return this.ease(function){
			var me = $(this),
				instance = me.data("pageSwitch");
			//单例模式
			if (!instance) {
				instance = new pageSwitch(me, options);
				me.data("pageSwitch",instance);
			}
			if ($.type(options) === "string") return instance[options]();
			$("div").pageSwitch("init");
		});
	}
	$.fn.pageSwitch.default = {
		selectors : {
			sections : ".selectors",
			section : "section",
			page : ".pages", //分页
			active : ".active",
		},
		index : 0,
		easings : "ease", //动画的效果
		duration : 500,
		loop : false, //循环播放
		pagination : true, // 是否分页处理
		keyboard : true,
		direction : "vertical", //滑动方向
		callback : "",
	}
})(jQuery);